<?php

/**
 * article components.
 *
 * @package    Nika
 * @subpackage article
 * @author     Alexey Shapran (alexey.shapran@gmail.com)
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class articleComponents extends sfComponents
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */	
  public function executeViewlist(sfWebRequest $request)
  {  	  	  
		$this->pager = new sfDoctrinePager('article', sfConfig::get('app_maxarticleperpage'));
	    $this->pager->setQuery(Article::Showsomearticles());
	    $this->pager->setPage('1');
	    $this->pager->init();
  }  
}
